package com.sgzn.sgpay.web.controller.check;

import com.sgzn.sgpay.enums.AppName;
import com.sgzn.sgpay.util.SerialNoUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 检查web是否启动成功
 * @author huangsenguang
 */
@Slf4j
@Controller
public class WebCheckOKController {

    @RequestMapping("/test/web")
    @ResponseBody
    public String testWeb(){
        String initiationID = SerialNoUtil.generateSerialNo(AppName.SGW);
        return initiationID+"<br/><h2>Hello, Sgpay-web start success !<h2>";
    }
}

